package com.itggm.mapper;

import com.itggm.DTO.RecruitPageDTO;
import com.itggm.pojo.Recruit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RecruitMapper {
    List<Recruit> page(RecruitPageDTO recruitPageDTO);

    void add(Recruit recruit);


    void delete(Integer id);

    void edit(Recruit recruit);

    void editStatus(@Param("id") Integer id, @Param("isDelete") Integer isDelete, @Param("version") Integer version);

    List<Recruit> RecruitList(Integer limit);

    Recruit getById(Integer id);
}
